<?php
	header('content-type:text/html;charset=utf-8');
	require 'mysqlpublic.php';
	@$type=$_POST['type'];
	if($type=='lie'){
	@$pic=$_POST['id'];
	$sql="select * from goods where id='$pic'";
	$result=mysql_query($sql);
	$ar=array();
	$sql_arr = mysql_fetch_assoc($result);
	array_push($ar,$sql_arr['goodname'],$sql_arr['imgurl'],$sql_arr['price']);
	echo json_encode($ar);
	}else if($type=='sl'){
		@$size=$_POST['size'];
		$sql="select * from thegood where size='$size'";
		$result=mysql_query($sql);
		$ar=array();
		$sql_arr = mysql_fetch_assoc($result);
		array_push($ar,$sql_arr['size'],$sql_arr['count']);
		echo json_encode($ar);
	}
?>